From: Glenn Morris Date: Wed, 2 Sep 2009 06:36:11 +0000 (+0000) Subject: (gnus-float-time): Make TIME optional, defaulting to current-time. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~10697 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=ab6a1098d7b43caff48cf2b1bbf56c08be494fa5;p=emacs.git (gnus-float-time): Make TIME optional, defaulting to current-time. --- diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 788fa16cb0d..fb2cdbce118 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el @@ -285,10 +285,11 @@ Symbols are also allowed; their print names are used instead." (and (= (car fdate) (car date)) (> (nth 1 fdate) (nth 1 date)))))) -(defun gnus-float-time (time) - "Convert time value TIME to a floating point number." +(defun gnus-float-time (&optional time) + "Convert time value TIME to a floating point number. +TIME defaults to the current time." (if (featurep 'xemacs) - (time-to-seconds time) + (time-to-seconds (or time (current-time))) (float-time time))) ;;; Keymap macros.